/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Modulo4;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

import java.util.*;

/**
 *
 * @author yngrdyn
 */
public class agregarCambioGuardiaForm extends org.apache.struts.action.ActionForm {
    
    private String fechaG;
    private String sede;
    private LinkedList personalAsist;
    private String ci;
    private String ci_reemplazo;
    private String autorizado;
    private String voe;
    private Long idGuardia;

    public Long getIdGuardia() {
        return idGuardia;
    }

    public void setIdGuardia(Long idGuardia) {
        this.idGuardia = idGuardia;
    }

    public String getVoe() {
        return voe;
    }

    public void setVoe(String voe) {
        this.voe = voe;
    }

    public String getAutorizado() {
        return autorizado;
    }

    public void setAutorizado(String autorizado) {
        this.autorizado = autorizado;
    }

    public String getCi_reemplazo() {
        return ci_reemplazo;
    }

    public void setCi_reemplazo(String ci_reemplazo) {
        this.ci_reemplazo = ci_reemplazo;
    }

    public String getCi() {
        return ci;
    }

    public void setCi(String ci) {
        this.ci = ci;
    }

    public LinkedList getPersonalAsist() {
        return personalAsist;
    }

    public void setPersonalAsist(LinkedList personalAsist) {
        this.personalAsist = personalAsist;
    }

    public String getSede() {
        return sede;
    }

    public void setSede(String sede) {
        this.sede = sede;
    }

    public String getFechaG() {
        return fechaG;
    }

    public void setFechaG(String fechaG) {
        this.fechaG = fechaG;
    }

    /**
     *
     */
    public agregarCambioGuardiaForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        /*if (getName() == null || getName().length() < 1) {
            errors.add("name", new ActionMessage("error.name.required"));
            // TODO: add 'error.name.required' key to your resources
        }*/
        return errors;
    }
}
